package com.ww.juc.threadpool.custom;

import java.util.Date;
import java.util.concurrent.ThreadFactory;

/**
 * TODO
 *
 * @author wanggw
 * @date 2024-07-12 23:25:51
 */
public class ThreadFactory1 implements ThreadFactory {

    @Override
    public Thread newThread(Runnable r) {
        Thread thread = new Thread(r);
        thread.setName("自定义线程池" + new Date());
        return thread;
    }
}
